﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for Product
/// </summary>
public class Product
{
    int _Image_id;
    public int Image_id
    {
        get { return _Image_id; }
        set { _Image_id = value; }
    }

    string _ImageName;

    public string ImageName
    {
        get { return _ImageName; }
        set { _ImageName = value; }
    }

    string _Image_URL;

    public string Image_URL
    {
        get { return _Image_URL; }
        set { _Image_URL = value; }
    }

    int _Size_id;

    public int Size_id
    {
        get { return _Size_id; }
        set { _Size_id = value; }
    }
    
    float _Price;

    public float Price
    {
        get { return _Price; }
        set { _Price = value; }
    }
    int _Quantity;

    public int Quantity
    {
        get { return _Quantity; }
        set { _Quantity = value; }
    }
    float _Total;

    public float Total
    {
        get { return _Total; }
        set { _Total = value; }
    }
    public Product()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    public Product(int Size_id,string ImageName ,string Image_URL, int Image_id, float Price, int Quantity, float Total)
    {
        this.Size_id = Size_id;
        this.Image_id = Image_id;
        this.Price = Price;
        this.Quantity = Quantity;
        this.Total = Total;
        this.Image_URL = Image_URL;
        this.ImageName = ImageName;
    }
}

public class KeyProduct
{
    int _Size_id;

    public int Size_id
    {
        get { return _Size_id; }
        set { _Size_id = value; }
    }
    int _Image_id;
    public int Image_id
    {
        get { return _Image_id; }
        set { _Image_id = value; }
    }

    public KeyProduct(int Size_id, int Image_id)
    {
        this.Size_id = Size_id;
        this.Image_id = Image_id;

    }

    public KeyProduct()
    {

    }
}
